package homework.one;

public class Demo1 {
    public static void main(String[] args) {
        Vehicle[] vehicles=new Vehicle[2];
        vehicles[0]=new Car();
        vehicles[1]=new Bike();
        for (Vehicle vehicle1:vehicles){
            vehicle1.drive();
        }
        Car car=new Car();
        Bike bike=new Bike();
        car.setMake("125");
        car.setModel("鬼火");
        bike.setMake("9号");
        bike.setModel("龟车");
        System.out.println(car.getMake());
        System.out.println(car.getModel());
        System.out.println(bike.getMake());
        System.out.println(bike.getModel());
    }
}
